/*
 * Copyright (c) 2022.  Asiacom Technology Inc. All rights reserved
 */

package com.swanclouds.model.managers;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.swanclouds.model.ModelEntity;

import java.util.UUID;

/**
 * @author 张立强
 * @version jdk1.8.0
 */
public class ExportKvmFileReq implements ModelEntity {

	@JsonProperty("Language")
	private String language;

	@JsonProperty("Mode")
	private String mode;

	public enum KeyMode {
		Shared,Private;
	}

	public enum Language {
		EN,CN;
	}

	public String getLanguage() {
		return language;
	}

	public String getMode() {
		return mode;
	}

	public static ExportKvmFileReq builder() {
		return new ExportKvmFileReq();
	}

	public ExportKvmFileReq language(String language) {
		this.language = Language.valueOf(language).name();
		return this;
	}

	public ExportKvmFileReq mode(String mode) {
		this.mode = KeyMode.valueOf(mode).name();
		return this;
	}

	public static void main(String[] args) {
		System.out.println(UUID.randomUUID().toString().replace("-", "").length());
	}
}
